
#ifndef UTILS_H
#define UTILS_H

#include <string>

int readLine( int fd, std::string & line );

/* Creates and configures a master socket on a given port. */
int master_socket (int port);

/* Logging function - prints message to a file, to stdout or to syslog. */
void log(int level, const char * message);
void log( int level, const char * message, int intArg );
void log( int level, const char * message, const char * charArg );
void logError( int level, const char * message );

#endif
